<template>
<view style="height: 100%;"> 
   <s-nav title="标题" class="nav-test"  style="background: #ff0000"></s-nav>
</view>
</template>
<script>
 import SNav from '../../components/s-nav.vue'
export default {
   components:{SNav,},
    data(){
        return {
            triggered:true,
        }
    },
    // onLoad() {
    //     this._freshing = false;
    //     setTimeout(() => {
    //         this.triggered = true;
    //     }, 1000)
    // },
    onReachBottom(){
        alert(1)
    },
    methods: {
        test(){
            console.log("test")
            uni.navigateBack();
        },
        onPulling(e) {
            console.log("onpulling", e);
        },
        onRefresh() {
            console.log(this._freshing)
            if (this._freshing) return;
            this._freshing = true;
            setTimeout(() => {
                this.triggered = false;
                this._freshing = false;
            }, 3000)
        },
        onRestore() {
            this.triggered = 'restore'; // 需要重置
            console.log("onRestore");
        },
        onAbort() {
            console.log("onAbort");
        }
    }
}
</script>
<style lang="scss">
.list {
    color: #ff0000;
}
</style>